package com.mmall.controller;

import com.mmall.pojo.Bean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Component
public class TestController {

    @Autowired
    private Bean bean;
    public String test(){
        System.out.println("+++++"+bean);
        return "123";
    }

    public static void main(String[] args) {
        TestController testController = new TestController();
        testController.test();
    }
}
